/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketmaster.businesslogic;

import ticketmaster.dao.DAOFactory;
import ticketmaster.dao.TransactionDAO;
import ticketmaster.dataobject.Transaction;

/**
 *
 * @author Wei Liu
 */
public class TransactionController
{
    public int createTransaction(Transaction transaction)
    {
        TransactionDAO transactionDAO = DAOFactory.getInstance().getTransactionDAO();
        return transactionDAO.insertTransaction(transaction);
    }

    public boolean updateTransaction(Transaction transaction)
    {
        TransactionDAO transactionDAO = DAOFactory.getInstance().getTransactionDAO();
        return transactionDAO.updateTransaction(transaction);
    }
}
